package com.cloud.api.upms.domain;

import lombok.Data;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * Author:  xuanning
 * Date:    2022/5/27 13:59
 */
@Data
@Component
public class User implements FactoryBean {
    /**
     * 姓名
     */
    private String name="xuan";
    /**
     * 编号
     */
    private String phone="18356285580";
    /**
     * 编号
     */
    private Integer age;

    @Override
    public Object getObject() throws Exception {
        User user=new User();
        user.setName("xiaoli");
        user.setPhone("18356285280");
        user.setAge(20);
        return user;
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
